package com.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/* *
 * @Title: 用户表
 * @Author: caiyuaan
 * @Date: 2025-03-14 16:28:39
 */
@Data
@TableName(value ="user")
public class User implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String userName;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 加密密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 实名认证姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 身份证号
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 注册日期
     */
    @TableField(value = "register_date")
    private Date registerDate;

    /**
     * 最后登录日期
     */
    @TableField(value = "last_login_date")
    private Date lastLoginDate;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Object gender;

    /**
     * 出生年月日
     */
    @TableField(value = "birth_date")
    private Date birthDate;

    /**
     * 用户状态(0-禁用 1-正常 )
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 锁定状态(0-未锁定 1-已锁定)
     */
    @TableField(value = "lock_status")
    private Integer lockStatus;

    /**
     * 学历
     */
    @TableField(value = "education")
    private String education;

    /**
     * 学校
     */
    @TableField(value = "school")
    private String school;
    //角色
    @TableField(value = "role")
    private String role;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private UserPreference userPreferences;

    @TableField(exist = false)
    private List<OssImage> ossImages;

    @TableField(exist = false)
    private List<Course> courses;
}
